package cn.com.dashihui.api.asyncThread;


import com.jfinal.aop.Duang;
import com.jfinal.plugin.activerecord.Record;

import cn.com.dashihui.api.dao.OrderG;
import cn.com.dashihui.api.service.GroupbuyingService2;

public class TeamFreeTask implements Runnable{
	private OrderG orderG;
	private GroupbuyingService2 service = Duang.duang(GroupbuyingService2.class);
	
	
	public TeamFreeTask( OrderG order) {
		this.orderG = order;
	}
	@Override
	public void run() {
		long start = System.currentTimeMillis();
		
		System.out.println("LLLLL异步执行："+orderG);
		service.dealTeamOrder(orderG);
		long end = System.currentTimeMillis();
		System.out.println("异步时间："+(end-start));
	}

}
